builder: Expot _gtk_builder_boolean_from_string privately
authorMatthias Clasen <mclasen@redhat.com>
Sun, 25 Oct 2020 16:19:21 +0000 (12:19 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 25 Oct 2020 16:19:21 +0000 (12:19 -0400)
When specifying accessible properties in ui files, it
is better to accept the same syntax for booleans as
elsewhere, so lets reuse this function.

gtk/gtkbuilder.c
gtk/gtkbuilderprivate.h

index 182ccad5f1bbf995a4a92a1596a0dfead480fe67..b6663126cffd8337af9f610ef805dc744462811b 100644 (file)
@@ -1997,7 +1997,7 @@ gtk_builder_value_from_string (GtkBuilder   *builder,
                                              string, value, error);
 }
 
-static gboolean
+gboolean
 _gtk_builder_boolean_from_string (const char   *string,
                                   gboolean     *value,
                                   GError      **error)
index 5fe910486b3edd4d46a6c67b9a53a0a02067ca43..c6200685c475d4a8cc136a87efb819ae0e7f5113 100644 (file)
@@ -242,6 +242,10 @@ gboolean  _gtk_builder_flags_from_string (GType         type,
                                          const char   *string,
                                          guint        *value,
                                          GError      **error);
+gboolean _gtk_builder_boolean_from_string (const char   *string,
+                                           gboolean     *value,
+                                           GError      **error);
+
 const char * _gtk_builder_parser_translate (const char *domain,
                                              const char *context,
                                              const char *text);